<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>

<body>
    <!-- <div id="app">
        <ul>
            <li v-for="(item,index) of list" :key='item.id' v-cloak>
                <span>{{item.name}}  -----{{index}}</span>
            </li>
        </ul>
    </div>

    <script src="./js/vue.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                list: [{
                    "id": "1",
                    "name": "三国演义",
                    "author": "罗贯中",
                    "category": "文学",
                    "desc": "一个杀伐纷争的年代"
                }, {
                    "id": "2",
                    "name": "水浒传",
                    "author": "施耐庵",
                    "category": "文学",
                    "desc": "108条好汉的故事"
                }, {
                    "id": "3",
                    "name": "西游记",
                    "author": "吴承恩",
                    "category": "文学",
                    "desc": "佛教与道教的斗争"
                }, {
                    "id": "4",
                    "name": "红楼梦",
                    "author": "曹雪芹",
                    "category": "文学",
                    "desc": "一个封建王朝的缩影"
                }, {
                    "name": "天龙八部",
                    "author": "金庸",
                    "category": "文学",
                    "desc": "武侠小说",
                    "id": 5
                }]
            }
        })
    </script> -->
































    <div id="app">
        <ul>
            <li v-for="(item,index) of list" :key="item.id" v-cloak>
                <span>{{item.name}}</span>
            </li>
        </ul>
    </div>

    <script src="./js/vue.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                list: [{
                    "id": "1",
                    "name": "三国演义",
                    "author": "罗贯中",
                    "category": "文学",
                    "desc": "一个杀伐纷争的年代"
                }, {
                    "id": "2",
                    "name": "水浒传",
                    "author": "施耐庵",
                    "category": "文学",
                    "desc": "108条好汉的故事"
                }, {
                    "id": "3",
                    "name": "西游记",
                    "author": "吴承恩",
                    "category": "文学",
                    "desc": "佛教与道教的斗争"
                }, {
                    "id": "4",
                    "name": "红楼梦",
                    "author": "曹雪芹",
                    "category": "文学",
                    "desc": "一个封建王朝的缩影"
                }, {
                    "name": "天龙八部",
                    "author": "金庸",
                    "category": "文学",
                    "desc": "武侠小说",
                    "id": 5
                }]
            }
        })
    </script>
</body>

</html>